# 6
total = 0

for i in range(1, 1000, 2):
    print(i)
    total += i

print(total)